home *** CD-ROM | disk | FTP | other *** search
- Path: bcfreenet.seflin.lib.fl.us!bcfreenet!z007400b
- From: z007400b@bcfreenet.seflin.lib.fl.us (Ralph Silverman)
- Newsgroups: comp.lang.c
- Subject: Re: text file manipulation
- Date: 30 Jan 1996 19:02:17 GMT
- Organization: SEFLIN Free-Net - Broward
- Message-ID: <4elpvp$h9u@bcfreenet.seflin.lib.fl.us>
- References: <4e6su7$6pu@paperboy.ids.net>
- NNTP-Posting-Host: bcfreenet.seflin.lib.fl.us
- X-Newsreader: TIN [version 1.2 PL2]
-
- scarney (scarney@conan.ids.net) wrote:
-
- : Another stupid question...
-
- : I'm trying to write a little program to modify the /etc/passwd
- : file...I'm curious how you take a line in a text file (like passwd) and
- : change it. Does fwrite append, or if the file index is in the middle of
- : the file will it overwrite whatever is there (i.e., do what I want to do
- : with the file). If not, could you use the FILE pointer to change the data?
-
- : Thanks.
-
- : --Seth
-
-
- --
- **********begin r.s. response*********
-
- this is in a unix,
- or at least, a
- unix like os,
- such as linux,
- is it not?
-
- this file is critical to
- system operation
- and should not be modified in
- the manner suggested!!!!!!!!!!!
-
-
- **********end r.s. response***********
- Ralph Silverman
- z007400b@bcfreenet.seflin.lib.fl.us
-
-